package com.zhuzg.controller;

import com.zhuzg.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 *  测试多数据源
 */
@RestController
@RequestMapping("ds")
public class MultiDsTestController {

    @Autowired
    StorageService storageService;

    @RequestMapping("getbyid")
    public Map getStorage(int id){

        return storageService.getId(id);

    }



}
